#!/usr/bin/env node

const fs = require('fs');
const file = process.argv[2] || __filename;

try{
  let fid = fs.openSync(file,'r');
  let content = fs.readFileSync(fid,'utf8');
  fs.writeSync(1,content);
  fs.closeSync(fid);
}catch(e){
  console.error(e.message);
  process.exit(1);
}
